import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import Seller from '@/components/seller/Seller'
import Goods from '@/components/goods/Goods'
import Ratings from '@/components/ratings/Ratings'
import 'common/stylus/index.styl'

Vue.use(Router)

export default new Router({
  routes: [{
      path: '/',
      name: 'HelloWorld',
      //重定向
      redirect: '/seller',
      component: HelloWorld,
      children: [{
        path: '/seller',
        component: Seller
      }, {
        path: '/goods',
        component: Goods
      }, {
        path: '/ratings',
        component: Ratings
      }]
    }

  ]
})
